August 06, 2024
Get eSIM Plans
Description:
Retrieves esim data plan list.
URI:
https://api.multitel.net/v3/get_esim_plans/{esim_id}
Parameters:
Required: esim_id - Unique ID of requested eSIM
Security:
Basic authentication is a simple authentication scheme built into the HTTP protocol. To use it, send your HTTP requests with an Authorization header that contains the word Basic followed by a space and a base64-encoded string username:password. Example: Authorization: Basic ZGVtbzpwQDU1dzByZA==
Methods:
GET
Sample output:
{ "status": { "code": 200, "msg": "" }, "response": [ { "id": "llPdwV1czPT4", "countries_enabled": [ "ROU" ], "data_quota_bytes": 1006632960, "data_bytes_remaining": 991127644, "start_time": "2024-08-05 04:50:44", "date_activated": "2024-08-05 16:52:37", "end_time": "2024-08-11 04:52:37", "network_status": "ACTIVE", "plan_type": { "id": "Wnycq5M9zutl", "plan_name": "Romania 1GB - 5 Days", "data_quota_mb": "1000", "validity_days": 6, "countries_enabled": [ "ROU" ], "policy_id": 14, "policy_name": "Maximum Data 1GB" } }, ] }
Sample code:
'https://api.multitel.net/v3/get_esim_plans/26dc9c21bb0c6d01539c4deb20ae1e77', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Authorization: Basic YWRtaW46TkxGN0ZQSUNXUV5VQU12lY0Qw==', ), )); $response = curl_exec($curl); curl_close($curl); echo $response;